<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title th:text="${title}"></title>
</head>
<body>
	<h1>1. th:text</h1>
	<h1 th:text="${content}"></h1>
	
	<h1>2. th:value</h1>
	<input name="xxx" th:value="${123}">
	
	<h1>3. th:if</h1>
	<p th:if="${true}">th:if="${true}"</p>
	<p th:if="${false}">th:if="${false}"</p>
	
	<h1>4. th:unless</h1>
	<p th:unless="${true}">th:unless="${true}"</p>
	<p th:unless="${false}">th:unless="${false}"</p>
	
	<h1>5. th:each</h1>
	<p th:each="c,cStat : ${contents}" th:text="|${cStat.index} - ${c}|"></p>
	
	<h1>6. th:block，打印和5中相同的结果</h1>
	<th:block th:each="c : ${contents}">
		<p th:text="${c}"></p>
	</th:block>
	
	<h1>7. th:with</h1>
	<th:block th:with="cs=${contents}">
		<p th:each="c : ${cs}" th:text="${c}"></p>
	</th:block>
	<th:block th:with="value=${123}">
		<p th:text="${value}"></p>
	</th:block>
	
	<h1>8. th:include</h1>
	<div id="includeId" th:include="pages/page :: show ('include a new page...')">
	</div>
	<div id="includeId2" th:include="pages/page :: show2 ('include a new page2...')">
	</div>
</body>
</html>